package com.xkdx.guangguang.fragment.comment;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class ShopMoreCommentAction extends AbsAction {

	String shopID, commentRefreshTime, pageIndex;

	public ShopMoreCommentAction(String shopID, String commentRefreshTime, String pagIndex) {
		this.shopID = shopID;
		this.commentRefreshTime = commentRefreshTime;
		this.pageIndex = pagIndex;
	}

	@Override
	public void constructRequest() {
		// 评论
		HashMap<String, String> commentmap = new HashMap<String, String>();
		commentmap.put("DeviceID", "2");
		commentmap.put("ShopID", shopID);
		commentmap.put("PageIndex", pageIndex);
		commentmap.put("PageSize", "10");
		commentmap.put("RefreshTime", commentRefreshTime);
		String commentJson = constructJson(commentmap);
		Parameter commentParameter = new Parameter("commentInterface", "getCommentListByShop", commentJson);

		List<Parameter> list = new ArrayList<AbsAction.Parameter>();
		list.add(commentParameter);
		requestData = constructMod(list);

	}
}
